import request from "@/utils/request";

enum API {
    STANDBOOK_URL = "/itp/api/standingbook",
}

export default{
    postItemList: (current: number, size: number, data: any) => request.post(`${API.STANDBOOK_URL}/item/page?current=${current}&size=${size}`, data),
    postAddItem: (param: any) => request.post(`${API.STANDBOOK_URL}/item`, param), //新增物品
    putUpdateItem: (param: any) => request.put(`${API.STANDBOOK_URL}/item`, param), //修改物品
    getItemDetail: (id: number) => request.get(`${API.STANDBOOK_URL}/item/id?id=${id}`),//物品详情
    deleteItem: (id: number) => request.delete(`${API.STANDBOOK_URL}/item?id=${id}`)//删除物品
}